.class final Lnet/tsapps/topdeals/abstractactivities/a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/abstractactivities/BaseActivity;

.field private final synthetic b:Lnet/tsapps/topdeals/g/a;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/abstractactivities/BaseActivity;Lnet/tsapps/topdeals/g/a;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/abstractactivities/a;->a:Lnet/tsapps/topdeals/abstractactivities/BaseActivity;

    iput-object p2, p0, Lnet/tsapps/topdeals/abstractactivities/a;->b:Lnet/tsapps/topdeals/g/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 3

    iget-object v0, p0, Lnet/tsapps/topdeals/abstractactivities/a;->b:Lnet/tsapps/topdeals/g/a;

    iget-object v0, v0, Lnet/tsapps/topdeals/g/a;->a:Ljava/lang/Throwable;

    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    iget-object v0, p0, Lnet/tsapps/topdeals/abstractactivities/a;->a:Lnet/tsapps/topdeals/abstractactivities/BaseActivity;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/abstractactivities/BaseActivity;->b()V

    iget-object v0, p0, Lnet/tsapps/topdeals/abstractactivities/a;->a:Lnet/tsapps/topdeals/abstractactivities/BaseActivity;

    iget-object v1, p0, Lnet/tsapps/topdeals/abstractactivities/a;->b:Lnet/tsapps/topdeals/g/a;

    invoke-virtual {v1}, Lnet/tsapps/topdeals/g/a;->getMessage()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Landroid/app/AlertDialog$Builder;

    invoke-direct {v2, v0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v0, "Error"

    invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    if-nez v1, :cond_0

    const-string v0, "Es ist ein Fehler aufgetreten"

    invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    :goto_0
    invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    return-void

    :cond_0
    invoke-virtual {v2, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    goto :goto_0
.end method
